package com.csj.cloud.common.entity;

import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;
import lombok.Data;

import java.math.BigDecimal;
import java.util.Date;

/**
 * <p>
 * 购物车表
 * </p>
 *
 * @author chengshaojie123
 * @since 2019-11-29
 */
@Data
@TableName("cart_item")
public class CartItem extends BaseEntity {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;
    @TableField("product_id")
    private Long productId;
    @TableField("product_sku_id")
    private Long productSkuId;
    @TableField("member_id")
    private Long memberId;
    /**
     * 购买数量
     */
    private Integer quantity;
    /**
     * 添加到购物车的价格
     */
    private BigDecimal price;
    /**
     * 销售属性1
     */
    private String sp1;
    /**
     * 销售属性2
     */
    private String sp2;
    /**
     * 销售属性3
     */
    private String sp3;
    /**
     * 商品主图
     */
    @TableField("product_pic")
    private String productPic;
    /**
     * 商品名称
     */
    @TableField("product_name")
    private String productName;
    /**
     * 商品副标题（卖点）
     */
    @TableField("product_sub_title")
    private String productSubTitle;
    /**
     * 商品sku条码
     */
    @TableField("product_sku_code")
    private String productSkuCode;
    /**
     * 会员昵称
     */
    @TableField("member_nickname")
    private String memberNickname;
    /**
     * 创建时间
     */
    @TableField("create_date")
    private Date createDate;
    /**
     * 修改时间
     */
    @TableField("modify_date")
    private Date modifyDate;
    /**
     * 是否删除
     */
    @TableField("delete_status")
    private Integer deleteStatus;
    /**
     * 商品分类
     */
    @TableField("product_category_id")
    private Long productCategoryId;
    @TableField("product_brand")
    private String productBrand;
    @TableField("product_sn")
    private String productSn;
    /**
     * 商品销售属性:[{"key":"颜色","value":"颜色"},{"key":"容量","value":"4G"}]
     */
    @TableField("product_attr")
    private String productAttr;


}
